﻿<%@ WebHandler Language="C#" Class="piece_save" %>

using System;
using System.Web;

public class piece_save : IHttpHandler {
    
    public void ProcessRequest (HttpContext context) {
        string uid = context.Request["uid"].ToString();
        TCMSPiece oPiece = new TCMSPiece(uid);
        oPiece.PieceName = context.Request["piecename"].ToString();
        oPiece.PieceContent = context.Request["piececontent"].ToString();
        oPiece.Update();
        context.Response.End();
    }
 
    public bool IsReusable {
        get {
            return false;
        }
    }

}